﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CardLogistics.Model.PutOutCard
{
    /// <summary>
    ///半成品/成品卡申领_实体类
    /// </summary>
    [Serializable]
    public partial class PutOutApply
    {
        public PutOutApply()
        { }
        #region Model
        private string _id = "sys_guid";
        private string _applyno;
        private DateTime? _applydate;
        private string _demandid;
        private string _remarks;
        private string _lastupdateuser;
        private DateTime? _lastupdatedate;
        private decimal? _isdelete;
        private DateTime? _addtime;
        private decimal? _issubmit;
        private string _cardtype;
        private decimal? _cardnumber;

        private string _demandNo; //需求单号
        private string _cardtypeName; //卡片类型名称
        private decimal? _demandTotal; //需求数量
        private decimal? _notApplyTotal; //剩余可申领数量
        private DateTime? _demandEndDate; //需求截止日期

        /// <summary>
        /// 半成品/成品卡申领主键
        /// </summary>
        public string ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 申领单号
        /// </summary>
        public string APPLYNO
        {
            set { _applyno = value; }
            get { return _applyno; }
        }
        /// <summary>
        /// 申领日期
        /// </summary>
        public DateTime? APPLYDATE
        {
            set { _applydate = value; }
            get { return _applydate; }
        }
        /// <summary>
        /// 需求表外键PURCHASE_DEMAND
        /// </summary>
        public string DEMANDID
        {
            set { _demandid = value; }
            get { return _demandid; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string REMARKS
        {
            set { _remarks = value; }
            get { return _remarks; }
        }
        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LASTUPDATEUSER
        {
            set { _lastupdateuser = value; }
            get { return _lastupdateuser; }
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LASTUPDATEDATE
        {
            set { _lastupdatedate = value; }
            get { return _lastupdatedate; }
        }
        /// <summary>
        /// 0 未删除 1 已删除
        /// </summary>
        public decimal? ISDELETE
        {
            set { _isdelete = value; }
            get { return _isdelete; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? ADDTIME
        {
            set { _addtime = value; }
            get { return _addtime; }
        }
        /// <summary>
        /// 0 未提交 1 待审核 2 审核中 3 驳回 4 审核不通过 5审核通过
        /// </summary>
        public decimal? ISSUBMIT
        {
            set { _issubmit = value; }
            get { return _issubmit; }
        }

        /// <summary>
        /// 卡片类型
        /// </summary>
        public string CARDTYPE
        {
            set { _cardtype = value; }
            get { return _cardtype; }
        }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal? CARDNUMBER
        {
            set { _cardnumber = value; }
            get { return _cardnumber; }
        }

        #region 用于读取数据

        /// <summary>
        /// 需求单号
        /// </summary>
        public string DemandNo
        {
            get { return _demandNo; }
            set { _demandNo = value; }
        }

        /// <summary>
        /// 卡片类型名称
        /// </summary>
        public string CardTypeName
        {
            set { _cardtypeName = value; }
            get { return _cardtypeName; }
        }
         /// <summary>
        /// 需求数量
        /// </summary>
        public decimal? DemandTotal
        {
            set { _demandTotal = value; }
            get { return _demandTotal; }
        }

         /// <summary>
        /// 剩余可用申领数量
        /// </summary>
        public decimal? NotApplyTotal
        {
            set { _notApplyTotal = value; }
            get { return _notApplyTotal; }
        }

        /// <summary>
        /// 需求截止日期
        /// </summary>
        public DateTime? DemandEndDate
        {
            get { return _demandEndDate; }
            set { _demandEndDate = value; }
        }
        
        #endregion

        #endregion Model
    }
}
